package com.yex.dao;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.yex.entity.DynamicLogEntity;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;

/**
 * 动态奖分配
 * 
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2019-01-14 16:20:31
 */
public interface DynamicLogDao extends BaseMapper<DynamicLogEntity> {

    List<DynamicLogEntity> selectByStatus();

    DynamicLogEntity selectByUser(@Param("userId") Integer userId,@Param("orderId") Integer orderId);

    Integer updateStatus(@Param("id") Integer id);

    BigDecimal selectLeaderTotal(@Param("userId")Integer userId);
}
